SitePoint Sponsor |
|
User Tag List
Results 1 to 16 of 16
Thread: POPUP WITHOUT ANYTHING IN <HEAD>
-
Aug 23, 2003, 15:29 #1
- Join Date
- Jan 2003
- Location
- Australia
- Posts
- 175
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
POPUP WITHOUT ANYTHING IN <HEAD>
I need to make an automatic popup window for my site but i dont want to place any code in the <HEAD></HEAD> tags.
Is this even possible?Clicgear 3.0 and Clicgear B3 Cart Bag Reviews
-
Aug 23, 2003, 15:34 #2
- Join Date
- Jan 2003
- Location
- Calgary, Canada
- Posts
- 2,063
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I am confused as to what you mean
care to explain more?Who walks the stairs without a care
It shoots so high in the sky.
Bounce up and down just like a clown.
Everyone knows its Slinky.
-
Aug 23, 2003, 15:34 #3
- Join Date
- Mar 2002
- Location
- Bristol, UK
- Posts
- 2,240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yup.
HTML Code:<body onload="javascript:window.open('http://www.example.com');">
-SamSam Hastings
-
Aug 23, 2003, 15:35 #4
- Join Date
- Mar 2002
- Location
- Bristol, UK
- Posts
- 2,240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Of course, remembering to delete the space between java and script
-SamSam Hastings
-
Aug 23, 2003, 18:16 #5
- Join Date
- Jan 2003
- Location
- Australia
- Posts
- 175
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks, that worked
Anyway of making it popup behind the existing window or making custom size or anything this way?Clicgear 3.0 and Clicgear B3 Cart Bag Reviews
-
Aug 23, 2003, 18:29 #6
- Join Date
- Jul 2003
- Location
- Sacramento, CA
- Posts
- 330
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Change height and width like this:
window.open('html.html','winName','height=200,width=200');
Not sure but u could try this to make it pop up behind:
<body onload="var win=window.open('open.html','winName','height=200,width=200');win.blur();">
Yup it seems to work for me!
-
Aug 24, 2003, 01:12 #7
- Join Date
- Mar 2002
- Location
- Lappeenranta, Finland
- Posts
- 176
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Popunders are evil, luckily my browser kills them. I'd advise not to use them.
-
Aug 24, 2003, 06:51 #8
Originally Posted by Arkkimaagi
-
Aug 24, 2003, 06:55 #9
Originally Posted by Devilware.net
---
Originally Posted by Poop_Shoot
Using inline javascript in your markup like that is only making extra work for yourself and anyone else may work on or maintain the site.
---
Ev!, if you *really* feel you have to use an automatic popup, then don't rely on it as the only way to trigger the new window.
Offer a link/button that will trigger the popup for those of us who have all automatic popups prevented by default.
It's far from ideal (or popular) to use popups to house essential site content or navigation.
Use them if you want, but be aware of the problems and potential problems that come with them.New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature
-
Aug 24, 2003, 07:06 #10
- Join Date
- Mar 2002
- Location
- Bristol, UK
- Posts
- 2,240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Bill Posters
-SamSam Hastings
-
Aug 24, 2003, 07:16 #11
- Join Date
- Jul 2003
- Location
- Sacramento, CA
- Posts
- 330
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
She asked for it on onload I never said that inline javascript! Or anything inline for that matter is a good idea! I was just responding to the question!
Last edited by Poop_Shoot; Aug 24, 2003 at 07:42.
-
Aug 24, 2003, 07:54 #12
No need to go on the defensive, poop_shoot. We're all aiming for the same thing.
But, just out of curiosity, why did you offer/suggest a method that you thought wasn't a good idea?
Why not show the method as you presumably would have done it yourself?
Like I say, I'm not having a pop at you, just curious.New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature
-
Aug 24, 2003, 08:28 #13
- Join Date
- Jul 2003
- Location
- Sacramento, CA
- Posts
- 330
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well Ev Said!
I need to make an automatic popup window for my site but i dont want to place any code in the <HEAD></HEAD> tags.
-
Aug 24, 2003, 10:28 #14
Fair enough. I'd still be inclined to mention the embedded or external method and explain how and why it is better, but I totally appreciate where you're coming from.
Fwiw, by 'inline' javascript I was only referring to placing the guts of a javascript in the markup.
I think that <body onload="popupFunction();"> is still acceptable enough to keep even the most anooyingly pedantic of members (such as myself) quiet.New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature
-
Aug 24, 2003, 12:24 #15
- Join Date
- Jul 2003
- Location
- Sacramento, CA
- Posts
- 330
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
This brings up a question is a bookmarklet concidered inline javascript!
Sorry Bill if I sounded angry in my post you caught me b4 my morning coffee!
-
Aug 24, 2003, 23:59 #16
If that's how you are *before* your morning caffeine hit, then I'll be even more inclined to steer clear of you *afterwards*.
Fwiw, I would imagine that a bookmarklet woudn't be considered as inline javascript as it's not contained inside the markup itself, whichi imho, would be the deciding factor.
If the ultimate aim is separate markup, code and styling, then you can't get much better than javascript bookmarklets. They are so separate that they aren't even contained anywhere within the site's own files.New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature
Bookmarks