473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to get action property, with element name 'action'

2
Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <script>
  3. function getAction() {
  4. alert(document.forms[0] .action);}        
  5. }
  6.  
  7. </script>
  8. </head>
  9. <body>
  10. <form action='la-la-la.html' method=get>
  11. <input name=action type=text>
  12. <input type=submit>
  13.  
  14. </form>
  15. <input type=button value='GET!!' onClick='getAction();'>
  16.  
  17. </body>
  18.  
So, getAction() return that 'action' is object, but how to get form object property.
Is it possible from function getAction()???
Dec 2 '06 #1
5 4045
ronverdonk
4,258 Expert 4TB
Expand|Select|Wrap|Line Numbers
  1. function getAction() {
  2. alert(document.forms[0].action.value);
Ronald :cool:
Dec 2 '06 #2
garpun
2
Expand|Select|Wrap|Line Numbers
  1. function getAction() {
  2. alert(document.forms[0].action.value);
Ronald :cool:
but I want to get la-la-la.html
Dec 4 '06 #3
AricC
1,892 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <script>
  3. function getAction() {
  4. alert(document.forms[0] .action);}        
  5. }
  6.  
  7. </script>
  8. </head>
  9. <body>
  10. <form action='la-la-la.html' method=get>
  11. <input name=action type=text>
  12. <input type=submit>
  13.  
  14. </form>
  15. <input type=button value='GET!!' onClick='getAction();'>
  16.  
  17. </body>
  18.  
So, getAction() return that 'action' is object, but how to get form object property.
Is it possible from function getAction()???
Are you trying to get the action of the form? I'm not sure what you mean byu get form object property?
Dec 4 '06 #4
nypee
1
I have the same problem. Did you manage to do that?

but I want to get la-la-la.html
Mar 18 '08 #5
acoder
16,027 Expert Mod 8TB
Is this problem in IE6 or all browsers?
Mar 19 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
17
by: abs | last post by:
My element: <span onclick="alert('test')" id="mySpan">test</span> Let's say that I don't know what is in this span's onclick event. Is it possible to add another action to this element's onclick...
10
by: iam247 | last post by:
Hi In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action: <form name="form" method="post" action="RegDetails.asp"> ...
3
by: | last post by:
I have created a web setup project for my ASP.NET application that works fine. Also, I have followed the instructions for using a custom action to launch a web page after the installation is...
3
by: Don Parker | last post by:
I am a newbie to ASP.NET. I am converting some asp pages I had working. I have a page which has a form with several input elements. When the user clicks on a Submit element - the action specified...
2
by: redpixel | last post by:
Hello everyone, I'm a fairly new to javascript and I need some help regarding element IDs. What I need is a simple javascript action that is attached to a checkbox that upon checking and...
4
by: Bosconian | last post by:
I have created a form tool page that consists of several dropdowns which allows a user to drill down and select a desired document for viewing in an external window. I need to post the form data to...
0
acoder
by: acoder | last post by:
Problem When setting the FORM object's action property an "Object does not support this property or method" error occurs Browser Internet Explorer 6- Example The Javascript code: var...
9
by: Meendar | last post by:
Hi, Below is my code snippet having only one form, <form> <input type ="radio" name="action" value="xyz" checked>xyz <input type ="radio" name="action" value="zyx">zyx <input type ="radio"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.