Reference: http://javascript.internet.com/forms/html-preview.html
<script type="text/javascript" language="javascript" >
function preview() {
var txt= $get('txtContent');
var sHTML= txt.value;
win = window.open(", ", 'popup', 'toolbar = no, status = no');
win.document.write("" + sHTML + "");
}
</script>
Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.
Sunday, March 2, 2008
Previewing a TextBox that has HTML with a Popup Window
Here is a nifty way to preview HTML in a TextBox. I use the ScriptManager and $get the TextBox ID before popping the window and then filling it.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(54)
-
▼
March
(11)
- const and static declarations
- Simulating a time spanned event with the sleep event
- Configure SQL Database for User Login
- Running a client-side application using javascript...
- Setting focus in a user control
- Giving Stored Procedure Permissions
- Prevent wrapping in table cell
- Previewing a TextBox that has HTML with a Popup Wi...
- SQL Server Management Studio Express Review
- Unable to cast object of type Foo to object of typ...
- Setting up form for HTML Email and Avoiding HttpRe...
-
▼
March
(11)
No comments:
Post a Comment