Restrict Popup Window Call
Hello, Anyone ca help me
I want to protect the popup windows only can be initiated by a certain page. I don't want user just cut and paste this popup url then from surf from brwser:
Maybe mypop.htm should have code to validate where it has been created? If it is not belong to newpop var then exit! How to do this?
pagex.htm
.
function showPop(){
newpop=window.open("mypop.htm",.....)
}
<input type="button" name="popw" onClick="showPop()">
.
.
|