Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WaterMark TextBox With CSS3 ?

Featured Replies

  • Author

Is it possible?

 

Any body is here?!

You can do it with place holder but that is not cross browser supported. Better use javascript. is there any issue to use javascript'?

You can do it with place holder but that is not cross browser supported. Better use javascript. is there any issue to use javascript'?

 

Placeholder is the way to go because it's forward-compatible. Polyfill for older browsers with Javascript.

but place holder is not a cross browser solution. m i right?

Thanks for the information :)

hey aryan, javascript is the best way to get what u want in this case , PlaceHolder is not Supported in All browsers

No - don't use just jQuery/Javascrpt. Use the placeholder attribute, and use a polyfill for older browsers.

 

Why?

 

Because this way, you're using the modern method for browsers that support it, which is better because the site will run faster, be more efficient, and be more up to date. Yet, at the same time, for older browsers you still get the same functionality by using the script.

 

Seriously, in instances like this you should be using a polyfill. Just using Javascript because browser support isn't 100% is merely a sign of being a lazy developer.

well an "one-line" javascript code doesn't make any difference in speed and u give the audience what they want

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.