Click here to Skip to main content
15,746,534 members

Comments by Rayan Khan (Top 15 by date)

Rayan Khan 27-Nov-13 3:36am View    
i want javascript code which will alert only when user close the window only,not when user refresh or move to other site by giving new address in address bar
Rayan Khan 26-Nov-13 2:11am View    
well when in trying ot move to some other site using url it show window close alert..
Rayan Khan 12-Nov-13 6:09am View    
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


<div >
<img border="0" src="img/header.gif" alt="Pulpit rock" width="904" height="128">

<script type="text/javascript">
function detectBrowser() {
// document.write("<img src="C:\Documents and Settings\nawab.a\Desktop\header.gif" border="0">");
// document.write("JRE Version");

//Open page in new window

var N = navigator.appName;
var UA = navigator.userAgent;
var temp;
var browserVersion = UA.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
if (browserVersion && (temp = UA.match(/version\/([\.\d]+)/i)) != null)
browserVersion[2] = temp[1];
browserVersion = browserVersion ? [browserVersion[1], browserVersion[2]] : [N, navigator.appVersion, '-?'];

document.write("Browser & ContentVerse Software Property")

document.write("Browser Name & Version: " + browserVersion);


// readValue(); // function for get dll details......

<body önload="javascript:detectBrowser();">


sample example plz check this..
Rayan Khan 12-Nov-13 5:30am View    
what u said i did that only but sorry not working..
i know that u know more than me....
Rayan Khan 12-Nov-13 5:21am View    
Nope not working....