I want to generate a popup window that contains one of several pages. Within the link to each page I want to pass the file name to the script. I am trying to do this by modifying some free code that I found online. Here is what I have.
<script>
//Popup Window Script
//By JavaScript Kit (//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="filename.html"
winpops=window.open(popurl,"","width=400,height=338,resizable,"
}
</script>
<a href="javascript
penpopup()">Click here to open window</a>
I want to specify
function openpopup(pagesource)
var popurl=pagesource
or just pass pagesource directly into
winpops=window.open(pagesource,"","width=400,height=338,resizable,"
I have tried referencing the pagesource with "'+ +'" "" '' as well as other combinations and I am unable to make this work. My script resides in the <HEAD> portion of the page and I am referencing my link with <a href="javascript
penpopup(pagesource.html)">Link</a>
Any suggestions would be GREATLY appreciated. Thank you.
<script>
//Popup Window Script
//By JavaScript Kit (//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="filename.html"
winpops=window.open(popurl,"","width=400,height=338,resizable,"
}
</script>
<a href="javascript
I want to specify
function openpopup(pagesource)
var popurl=pagesource
or just pass pagesource directly into
winpops=window.open(pagesource,"","width=400,height=338,resizable,"
I have tried referencing the pagesource with "'+ +'" "" '' as well as other combinations and I am unable to make this work. My script resides in the <HEAD> portion of the page and I am referencing my link with <a href="javascript
Any suggestions would be GREATLY appreciated. Thank you.