tucson
09-13-2002, 12:39 PM
I am very new to javascript -- please don't hurt me ! :-)
I am trying to put a pop-up on a webpage. I used the script generator at http://javascriptkit.com/popwin/index.shtml and pasted the script into the BODY of a test page on the web.
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,status,")
}
openpopup()
</script>
I pasted script into a web page per instructions, but when I go to the page, the pop-up only contains a 404 error "The page cannot be found". My browser is IE6.
What am I doing wrong?
Please advise. Thanks,
Tucson
I am trying to put a pop-up on a webpage. I used the script generator at http://javascriptkit.com/popwin/index.shtml and pasted the script into the BODY of a test page on the web.
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,status,")
}
openpopup()
</script>
I pasted script into a web page per instructions, but when I go to the page, the pop-up only contains a 404 error "The page cannot be found". My browser is IE6.
What am I doing wrong?
Please advise. Thanks,
Tucson