Passing values to popup window


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Javadomain Example</title>
<script type="text/javascript">
function site_open(){
	var site = document.getElementById("so").value;;
function site_open_withoutHTTP(){
	var siteH = document.getElementById("soH").value;'http://'+siteH);
<form method="post">
Enter the website url to open in the new popup window
<input type="text" id="so">
<input type="submit" value="Open" onclick="site_open()">
Enter the website url
<input type="text" id="soH">
<input type="submit" value="Open" onclick="site_open_withoutHTTP()">


site open

Enter the url and click the open button, then entered url will open in the new popup window.

Thanks for reading this post…………..!!!

291 total views, 1 views today

Leave a Reply

Your email address will not be published. Required fields are marked *