Print Page | Close Window

Help with execCommand and a few questions

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9209
Printed Date: 28 March 2026 at 5:59pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Help with execCommand and a few questions
Posted By: aero
Subject: Help with execCommand and a few questions
Date Posted: 24 January 2004 at 2:07pm

I'm making a texteditor for a news script, and I got a few questions;

1. When u click on the pic ;
  <img alt="Bold" src="images/bold.gif" onClick="doBold()">
   it runs doBold, but I want it 2 show bolddown.gif untill I click it again;
   wich should make it turn off and show bold.gif again

 

2. How do I make a margen so the following text will be touching the edges,
   and NOT 1 cm left margen and ½ cm top margen?
   <iframe id="iView" style="width: 300px; height:200px"></iframe>


3. when I make a linechange with "ENTER", it seems as if it makes <P></P>, like 2 linechanges.
   How do I make a function, wich only makes 1 linechange when I hit "ENTER", kind of like this; function doBold()

 

{

iView.document.execCommand('bold', false, null);

}


4. what's the execCommand for straight margens, I got left, centre and right execCommand.

5. If I want 2 save what I type, into ID=iview in the iframe. I suppose it's the same as; FORM NAME, but don't know. (in ASP)




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net