SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Javascript popup window problem!
-
May 15, 2001, 06:30 #1
- Join Date
- Apr 2001
- Location
- UK
- Posts
- 18
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi all!
I'm having a problem with a pop up window I've linked to from my index page ( http://www.dirtbikestore.com) for shipping information. Once clicked on and then closed out of - you are not able to click on the link again and moving gifs become frozen.
Basically I've used:
<!-- Hide script from old browsers
function newWindow()
{
newWindow = window.open("http://web1901.vs.netbenefit.co.uk/Shippingcharges.htm", 'newWindow', 'width=400,height=300,scrollbars=yes')
newWindow.focus()
}
// End hiding script from old browsers -->
with the link as:
<a href="javascript:newWindow()"><img SRC="shipping.gif" ALT="Click here for details of shipping costs" BORDER=0 height=58 width=282></a></center>
Can anyone throw any light on why this popup is freezing the page?
Any help gratefully recieved!!
-
May 15, 2001, 06:37 #2
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
edit
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
May 15, 2001, 15:47 #3
- Join Date
- Oct 2000
- Location
- Austin, TX
- Posts
- 1,438
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Try making it <a href="javascript://" onClick="newWindow()">blah</a>
-
May 16, 2001, 06:17 #4
- Join Date
- Apr 2001
- Location
- UK
- Posts
- 18
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks for your suggestion, but it didn't work - it actually gave a "Error 404 - Document Not Found"
Any other suggestions ???!!!
-
May 16, 2001, 06:27 #5
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Mox...
the 404 error just means that the new window could not find that page you are telling it to load. Make sure the URL is correct and try it again.Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
May 18, 2001, 02:39 #6
- Join Date
- Apr 2001
- Location
- UK
- Posts
- 18
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi - thanks for your suggestions.
I solved the error 404 - I copied my original typo of java script instead on javascript.
having said that it still does solve the freezing page issue.
Anyone have any other ideas I could try?!
Thanks in advance
Bookmarks