Howdy,
I have been struggling with a couple of scripts I found at javascriptkit.
I simply want a pop-up window but I would like a button instead of a text link that activates the pop-up (like the one they have in their pop-up tutorial)
<form>
<input type="button" value="Click here to see">
onclick="window.open('page2.htm',
'win1','width=200,height=200')"
</form>
But I am also having trouble with the pop-up script that was generated for me with their pop-up wizard.
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="venice_beach_sunsetpoll.htm"
winpops=window.open(venice_beach_sunsetpoll.htm,"","width=400,height=338,scrollbars,resizable,")
}
</script>
<a href="javascript
penpopup()"><font color="#FFFFFF">Please cast your vote on this photo CLICK HERE</font></a>
When I preview it in my browser it says "venice_beach_sunsetpoll.htm is undefined"
Being a cut and paste kinda programmer I don't know what this means.
Since I am conducting a poll in this pop-up window I want my visitors to view the results in the same pop-up window but is there a way to make the dimensions of the result page different?
If someone could marry the two scripts above and show me what I am doing wrong overall I would really appreciate it.
Thank You!
I have been struggling with a couple of scripts I found at javascriptkit.
I simply want a pop-up window but I would like a button instead of a text link that activates the pop-up (like the one they have in their pop-up tutorial)
<form>
<input type="button" value="Click here to see">
onclick="window.open('page2.htm',
'win1','width=200,height=200')"
</form>
But I am also having trouble with the pop-up script that was generated for me with their pop-up wizard.
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="venice_beach_sunsetpoll.htm"
winpops=window.open(venice_beach_sunsetpoll.htm,"","width=400,height=338,scrollbars,resizable,")
}
</script>
<a href="javascript

When I preview it in my browser it says "venice_beach_sunsetpoll.htm is undefined"
Being a cut and paste kinda programmer I don't know what this means.
Since I am conducting a poll in this pop-up window I want my visitors to view the results in the same pop-up window but is there a way to make the dimensions of the result page different?
If someone could marry the two scripts above and show me what I am doing wrong overall I would really appreciate it.
Thank You!
Comment