PDA

View Full Version : HTTP 404 - File not found


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

GateKeeper
09-13-2002, 01:27 PM
did you upload "thankyou.htm" to the server? the page you are trying to popup has to be online as well, otherwise it is just like trying to go to a page that doesnt exist.

GK

tucson
09-13-2002, 01:37 PM
Thanks--I think I've got it now. The directions said, "Simply copy the generated code into the <BODY> section of your webpage, and you're done!" I thought I was done!

They neglected to mention that I have to create a whole additional webpage with the desired content--the implication was that I could just type the content I wanted between the quotes in the script.

Of course, I was trying to figure this out around 5 AM--which probably didn't help.

Thanks again for your timely advice!