LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2004, 03:17 AM   #1
aiiiq
LQ Newbie
 
Registered: May 2004
Location: China
Distribution: Knoppix
Posts: 4

Rep: Reputation: 0
Lightbulb can not execute outerHTML On Mozilla! (JavaScript)


The following JavaScript code can run on IE.
But can not run on Mozilla!
How can I do?

<input id=aaa type=button value=test onclick=f_go()>
<script>
function f_go()
{
document.getElementById('aaa').outerHTML='<textarea></textarea>'
}
</script>
 
Old 05-04-2004, 04:09 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Try this:

<input id="aaa" type="button" value="test" onclick="f_go()">
<script>
function f_go()
{
document.forms['myform'].elements['aaa'].value="";
}
</script>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Konqueror 3.3.2 isn't able to execute JavaScript lord_didger Linux - General 0 10-08-2005 03:17 AM
how to use JavaScript on Mozilla? aiiiq Programming 3 05-03-2004 09:20 PM
Mozilla and Javascript redsea Linux - Software 6 04-11-2004 02:14 PM
javascript on mozilla abd_bela Linux - Software 2 07-27-2003 05:43 AM
javascript/mozilla wr3ck3d Linux - General 3 12-18-2002 02:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration