Can't use an alert. This is for an offline browser-based WYSIWYG editor. To make a rollover button, the user browses to set the mouseover and mouseout images, then clicks a button to generate AND insert the rollover javascript into the source code of the page under construction.
So I need a...
When used to browse for images, <input type="file"> produces a URL address with backward slashes in the text field. For example -- C:\Windows\Desktop\photo2.jpg.
I need the backward slashes automatically converted to forward slashes before the text field value (URL) is inserted into an image...
This may only work in Internet Explorer, but place this script in the head section:
<SCRIPT LANGUAGE="JScript" TYPE="text/javascript" FOR=window EVENT=onbeforeunload>
mess = "ADDITIONAL MESSAGE OPTIONAL HERE"
return mess;
</SCRIPT>
...if you are using document.write after the page has loaded, the second one will overwrite the first, so maybe you should do all of this with one insertion, specifying the following things each time:
<html><head></head><body></body></html>"
I'm afraid you misunderstood the problem. The user of...
This may be difficult to understand unless you are familiar with the design mode feature built into Internet Explorer 5.5+. I used this feature to develop a browser-based WYSIWYG HTML editor for offline use, but I have run into a serious problem that I can't solve.
innerHTML and outerHTML...
I have written a preview page function for the WYSIWYG editor I'm developing, but it doesn't work and I can't figure out why. I get error message "Access denied" on one line. Here's the script:
function previewPage() {
iView.document.execCommand('SaveAs',null,'popup')...
Can anyone tell me how to stop the script below from removing the back slashes in the image URL? Here's the result I get in the alert:
<img src=C:WindowsDesktopimage1.jpg width="100" height="100" border="0">
function getImageDims(imgurl)
{
var oImage = new Image();
oImage.onload = new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.