Answers for "css go back button"

CSS
0

back button css

<!DOCTYPE html>
<html>
   <head>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <style>a{text-decoration: none; display: inline-block; padding: 8px 16px;}a:hover{background-color: #ddd; color: black;}.previous{background-color: #f1f1f1; color: black;}.next{background-color: #04AA6D; color: white;}</style>
   </head>
   <body><a href="#" class="previous">&laquo; Previous</a><a href="#" class="next">Next &raquo;</a> </body>
</html>
Posted by: Guest on July-16-2021
0

Back Button

import {Component} from '@angular/core';
import {Location} from '@angular/common';

@Component({
  // component's declarations here
})
class SomeComponent {

  constructor(private _location: Location) 
  {}

  backClicked() {
    this._location.back();
  }
}
Posted by: Guest on June-15-2021

Browse Popular Code Answers by Language