Home Answers Viewqa JavaScriptQuestions url capture in javaScript

 
 


Mamta Rai
url capture in javaScript
0 Answer(s)      a year and 10 months ago
Posted in : JavaScript Questions

Hi All, I m creating a bookmark to capture the url of the site and the user's input in the bookmark,in javaScript.this url and user input is to be saved into DB. Following is my code.Result is not appropriate,what I need.Below is my code,where do I need to change it:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Show all names</title>
<script type="text/javascript">
<!--
function bookmark(url, sitename)
{    document.write (document.location.href);
       document.write (window.parent.document.location.hre);
  ns="Netscape and FireFox users, use CTRL+D to bookmark this site."
  if ((navigator.appName=='Microsoft Internet Explorer') &&
    (parseInt(navigator.appVersion)>=4))
  {
    window.external.AddFavorite(url, sitename);
  }
  else if (navigator.appName=='Netscape')
  {
    alert(ns);
    //document.write (document.location.href); 
  }
}
//-->
</script>

</head>
<body>
<form method="GET" action='Controller' name="showall">
<table>
    <tr>
        <td><input type="checkbox" name="id1" /></td>
        <td>Jim</td>
        <td>Knopf</td>
    </tr>
    <tr>
        <td><input type="checkbox" name="id2" /></td>
        <td>Jim</td>
        <td>Bean</td>
    </tr>
</table>

<p><input type="submit" name="delete" value="delete" />&nbsp; 
   <input type="submit" name="edit" value="edit" />&nbsp; 
    <input type="reset"
    value="reset" /></p>
</form>
<a href="javascript:bookmark('http://www.mydomainname.com/',
'My Site Name');">Bookmark This Site</a>


</body>
</html>

Please suggest.

View Answers









Related Pages:
url capture in javaScript
url capture in javaScript  Hi All, I m creating a bookmark to capture the url of the site and the user's input in the bookmark,in javaScript.this url and user input is to be saved into DB. Following is my code.Result
How to capture screenshot in url?
How to capture screenshot in url?  Hi, How to capture screenshot and it will store the capture image in url like this http://localhost/xxx/yyy/ it wil not sore C:\ or D:\ it should store like this http://localhost/xxx/yyy
javascript for websites url validation
javascript for websites url validation  javascript for websites url validation   JavaScript Code for URL Validation **function isvalidurl(url) { return url.match(/^(ht|f)tps?:\/\/[a-z0-9-.]+.[a-z]{2,4}\/?([^\s<
capture
capture  How can i capture values or text selected in drop down menu or in combo box or in any input forms and print it on the same page ?? also the selected value i want to store it in data base. how can i do that?? plzzzz
javascript regex validate url
javascript regex validate url  How to validate URL in regex Javascript   <html> <head> <title>Url validation using regex</title> <script type="text/javascript"> function validate
JavaScript Open URL
JavaScript Open URL...; In this section, you will learn how to open the url on the window.  As we know that window.location object that contains the current URL information
JavaScript Navigate to URL
JavaScript Navigate to URL...; JavaScript provides several methods and properties which allow the user... to the specified URL "http://www.roseindia.net". Here is the code
webpage capture
webpage capture   webpage capture source code using jsps and servlets
Screen Capture
Screen Capture  How to capture the screen using jsps and servlets
how to capture jsf form data - Java Server Faces Questions
how to capture jsf form data  hi , i have a jsf page with username... = null; String url = "jdbc:mysql://localhost:3306/"; String dbName = "user... = DriverManager.getConnection(url+dbName,userName,db_password); System.out.println("Connected
JavaScript location.replace() method
JavaScript location.replace() method       JavaScript method location.replace(URL) immediately redirects to the specified URL location. After calling replace() method ,you cannot go
how to capture IE browser FileDownload box open ,save and cancel event - JSP-Servlet
to capture open,save and cancel event of filedownload box in javascript. Please...how to capture IE browser FileDownload box open ,save and cancel event  I have a JSP page which allows user to download a file.When user click
Capture a image and upload to server
Capture a image and upload to server  Hai team i have trouble to capture a image and upload to server in java me........... So i want a code immediately,.......To capture a image and upload to server in j2me...... If you give
php web page capture
php web page capture  How to capture the history of a web page using PHP
JavaScript - JavaScript Tutorial
JavaScript Tutorials is one of the best Quick reference to the JavaScript. In this JavaScript reference you will find most of the things about java script. JavaScript tutorial is classified into sections with examples. This tutorial
JavaScript - JavaScript Tutorial
JavaScript Tutorials is one of the best Quick reference to the JavaScript. In this JavaScript reference you will find most of the things about java script. JavaScript tutorial is classified into sections with examples. This tutorial
JavaScript - JavaScript Tutorial
() method JavaScript method location.replace(URL) immediately redirects...JavaScript - JavaScript Tutorial JavaScript Tutorials is one of the best Quick reference to the JavaScript. In this JavaScript reference you will find
URL Encoding and URL Decoding
URL Encoding and URL Decoding  What is URL Encoding and URL Decoding ?   URL encoding is the method of replacing all the spaces and other extra characters into their corresponding Hex Characters and Decoding
Javascript & jsp
Javascript & jsp  Dear Sir, I have a table which has records...*"%> <html> <head> <script type="text/javascript"> function showData(id){ xmlHttp=GetXmlHttpObject() var url="getdata.jsp"; url=url+"?id
can I capture wifi trafic in windows?
can I capture wifi trafic in windows?  Hi, can I analyse wifi trafic in windows and not in linux ? thank you
How to capture picture from webcam using java
How to capture picture from webcam using java  i want catch the image from web-cam using jsp, If anyone knows please answer me
How to capture output from console into textarea in java?
How to capture output from console into textarea in java?  Hi, I would like to know how can we display the result of a program in java into a textarea instead of displaying it on console. Thanks
How to capture video and then how to store it in mobile memory
How to capture video and then how to store it in mobile memory  Hello there, I'm developing a mobile application where i'm capturing video from... but they are not working properly some of them capture video but doesn't allow me
Javascript Examples
the user straightforward to the specified URLJavaScript move div... to URL JavaScript provides several methods and properties which allow the user... window.  JavaScript Open URL As we know that window.location object
Data Capture from resume - JSP-Servlet
Data Capture from resume  Hi Sir, In My Application, when i Upload a resume the relevant columns like name,phone,email,skills etc need to be captured automatically and must be stored into the database. Please solve
Capture browser file download event - JSP-Servlet
Capture browser file download event  Hi, I appreciate your help and thaanks for that.But my question was when filedownload dialog box comes in browser,how we can come to know that user has clicked on Open,save or cancel button
Friendly URl
Friendly URl  creating a SEO friendly URL
URL problem
URL problem  Hi. I have created a webpage for my project website. in that i have used frameset to split the page. Now if i click any link in the page its navigating to the another page. but the problem is here in the url its
hide url
hide url  how i can hide url i have lot of jsp pages when i call one jsp in address another jsp page name also displayed in the address bar? url not visible to endusers please tell me any answer what i should do
javascript duplicate value
javascript duplicate value  In javascript how to find the duplicate or variable that contains same value for example ...two different variables contains the same URL Link.    //To loop through use this $("a:contains
Assigning URL
url to my attendancetemplate.jsp file, please help me if anyone knows, am
JavaScript
JavaScript  clone JavaScript
JavaScript method location
JavaScript method location...; In this section, you will learn the use of JavaScript location.href. JavaScript... redirects the user straightforward to the specified URL. In the given example
javascript
javascript  javascript code to dynamically add table on button click.../javascript/javascriptexamples/javascript-add-row-dynamically.shtml http://www.roseindia.net/javascript/javascript-add-row-to-table.shtml http://www.roseindia.net
Javascript
Javascript  How validations are done using javascript ,with example? and interview questions on javASCRIPT
JavaScript
should use JavaScript? Thanks   Hi, JavaScript is scripting language that runs on browser. You have to embed JavaScript in HTML page. Please see JavaScript tutorial. Thanks
JavaScript
JavaScript  how to get full path of a file type in javascript
javascript
javascript  Hi deepak, how to write form validation on javascript
javascript
javascript  write a program to display implement about browsers using javascript
javaScript
javaScript  How to open a browser window that cannot be resized? (HTML + Javascript
javascript
javascript  i have just learned javascript... can you tell me what kind of applications can be made by javascript?? thank you
JavaScript getAttribute Href
; In JavaScript we can get the URL value of the linked resource by getting... in the JavaScript. URL fetched with "href" property holds full address as shown... JavaScript getAttribute Href
JavaScript method AddFavourite()
JavaScript method AddFavourite()       This section illustrates you the use of JavaScript method... to Favorites... function of Favorites menu in the Internet Explorer with the given URL
javascript - JSP-Servlet
") return } var url= "getdata.jsp"; url += "?val=" +str; xmlHttp.onreadystatechange = stateChange; xmlHttp.open("GET", url, true); xmlHttp.send(null
javascript
javascript  how to set the request or session attribute in javascript head part of jsp page
long url to short url for jsp or servlet
long url to short url for jsp or servlet  I have to convert a url "http://localhost:8080/Popup/popup?phone=111111111". I am unable to do the same. Please any help
JAVASCRIPT
JAVASCRIPT  I have one textbox and I want to validate that it must start with number(1-0). can anyone tell me a javascript for that ? thanks in advance
Javascript
Javascript   Javascript to check Numeric entry in checkbox.....   Hi Please find the following code for numeric entry validation in javascript function validateBox(){ var data=document.myForm.someText.value

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.